home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-02-19 | 1.1 KB | 68 lines | [TEXT/MPS ] |
- #
- # File: MakeFAT
- #
- # Contains: utility for merging 68k & PPC shared libraries
- #
- # Written by: Steve Smith
- #
- # Copyright: © 1995 by Apple Computer, Inc., all rights reserved.
- #
-
- if {#} == 0
- Echo
- Echo "#"
- Echo "# Usage: MakeFAT <shli1> <shlib2> [-o <outputlib>]"
- Echo "#"
- Echo
- Exit 0
- else if {#} < 2
- Echo
- Echo "### Error: Two few parameters specified"
- Echo
- Exit 1
- else if {#} > 4
- Echo
- Echo "### Error: Two many parameters specified"
- Echo
- Exit 1
- end
-
- set output "{1} [FAT]"
- set get 0
- set file1 ""
- set file2 ""
-
- for parm in {"Parameters"}
- if "{parm}" =~ /-[oO]/
- set get 1
- else if {get} == 1
- set output "{parm}"
- set get 0
- else if "{file1}" == ""
- set file1 "{parm}"
- else if "{file2}" == ""
- set file2 "{parm}"
- end
- end
-
- if {get} == 1
- Echo
- Echo "### Error: output file name not specified"
- Echo
- Exit 1
- end
-
- if "{file2}" == ""
- Echo
- Echo "### Error: <shlib2> parm not specified"
- Echo
- Exit 1
- end
-
- (evaluate "{1}" =~ /?+:([¬:]+)®1/) ∑∑ dev:null
-
- Echo Copying: {®1}’s resources.
- Duplicate -y "{1}" "{output}"
- Echo Merging: Code Fragments.
- Mergefragment "{2}" "{output}"
-